package dao;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class Conexao {
	
	private static Connection connection;
	
	 public static Connection getConexao() throws ClassNotFoundException, SQLException {
		 
		 	if (connection == null){
		 		Class.forName("com.mysql.jdbc.Driver");
		 		connection = DriverManager.getConnection("jdbc:mysql://localhost/manager", "root", "root");
		 	}
		 	
		 	return connection;
	    }


}
